package com.example.demo.entity;

import java.io.Serializable;

public class Company implements Serializable {
    private Integer companyId;

    private String companyName;

    private Integer companyManagerId;

    private static final long serialVersionUID = 1L;

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName == null ? null : companyName.trim();
    }

    public Integer getCompanyManagerId() {
        return companyManagerId;
    }

    public void setCompanyManagerId(Integer companyManagerId) {
        this.companyManagerId = companyManagerId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", companyId=").append(companyId);
        sb.append(", companyName=").append(companyName);
        sb.append(", companyManagerId=").append(companyManagerId);
        sb.append("]");
        return sb.toString();
    }
}